package com.itgt.renwu2;

import java.util.Scanner;

public class Sum {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("��������λ��");
		int num = scanner.nextInt();
		int q,b,s,g,sum;
		q=num/1000;
		b=num/100%10;
		s=num/10%10;
		g=num%10;
		System.out.println("ǧ��"+q+" "+"�٣�"+b+" "+"ʮ��"+s+" "+"����"+g);
		sum=q+b+s+g;
		System.out.println("ǧ���١�ʮ����λ������֮��sum="+sum);
	}

}
